package com.itheima.homework.homework2;

import java.util.Random;

public class HomeWork2 {
    public static void main(String[] args) {
        Long time1 =System.currentTimeMillis();
        String[] s={"张三丰","张无忌","周芷若","任我行","林青霞","柳岩"};
        Random r=new Random();
        int index=r.nextInt(s.length);
        System.out.println("抽中："+s[index]+"!，恭喜"+s[index]+"当选本届武林盟主！");
        Long time2 =System.currentTimeMillis();
        System.out.println(time2-time1);
    }
}
